package com.zhanghe.mall.pojo.repository;

import com.zhanghe.mall.pojo.RolePermissions;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RolePermissionsRepository extends JpaRepository<RolePermissions,Long> {

    List<RolePermissions> findByRole_IdInAndPermissions_TypeOrderByPermissionsSortAsc(List<Long> roleIds,String type);

}
